package com.sync.syncmasterdata.dingrobot.pojo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 钉钉推送消息接受对象
 */
@Data
public class DingMsg {
    @JsonProperty(value = "phones")
    @NotNull(message = "电话不能为空")
    private List<String> phones;

    @JsonProperty(value = "msg")
    @NotBlank(message = "推送信息不能空")
    private String msg;
}
